<?php

namespace App\Http\Requests\User;


use App\Http\Requests\AbstractBaseRequest;

class FindPasswordRequest extends AbstractBaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
//            'account' => ['required', 'between:6,20', 'alpha_num'],
            'password' => ['required', 'string', 'between:6,20'],
            'mobile' => ['required','string'],
            'verify_code' => ['required', 'digits:6'],
        ];
    }

    public function attributes(): array
    {
        return [
            'account' => trans('会员编号'),
            'password' => trans('新登录密码'),
            'mobile' => trans('手机号或邮箱'),
            'verify_code' => trans('短信验证码'),
        ];
    }

}
